package com.zsrt.java.day20161226.wrl.demo03;

import java.util.Scanner;

public class Work05 {
	/*@Test
	public void w05(){
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入等级：\n");
		String dj = sc.next();
		sc.close();
		switch (dj) {
			case "A":	System.out.println("成绩优秀");		break;
			case "B":	System.out.println("成绩良好");		break;
			case "C":	System.out.println("成绩及格");		break;
			default:	System.out.println("成绩不靠谱");		break;
		}
	}*/
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入等级：\n");
		String dj = sc.next();
		sc.close();
		System.out.println(work05(dj));
	}
	
	/**
	 * 根据等级，返回评价
	 * @param dj	等级
	 * @return		评价
	 */
	public static String work05(String dj){
		String result = "";
		switch (dj) {
			case "A":	result = "成绩优秀";		break;
			case "B":	result = "成绩良好";		break;
			case "C":	result = "成绩及格";		break;
			default:	result = "成绩不靠谱";		break;
		}
		return result;
	}
}
